import 'package:jyofservice/bean/diaodu_detail_entity.dart';
import 'package:jyofservice/generated/json/base/json_filed.dart';

diaoduDetailEntityFromJson(DiaoduDetailEntity data, Map<String, dynamic> json) {
	if (json['Code'] != null) {
		data.code = json['Code'].toString();
	}
	if (json['Msg'] != null) {
		data.msg = json['Msg'].toString();
	}
	if (json['Data'] != null) {
		data.data = DiaoduDetailData().fromJson(json['Data']);
	}
	return data;
}

Map<String, dynamic> diaoduDetailEntityToJson(DiaoduDetailEntity entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['Code'] = entity.code;
	data['Msg'] = entity.msg;
	data['Data'] = entity.data?.toJson();
	return data;
}

diaoduDetailDataFromJson(DiaoduDetailData data, Map<String, dynamic> json) {
	if (json['count'] != null) {
		data.count = json['count'].toString();
	}
	if (json['data'] != null) {
		data.data = (json['data'] as List).map((v) => DiaoduDetailDataData().fromJson(v)).toList();
	}
	return data;
}

Map<String, dynamic> diaoduDetailDataToJson(DiaoduDetailData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['count'] = entity.count;
	data['data'] =  entity.data?.map((v) => v!.toJson())?.toList();
	return data;
}

diaoduDetailDataDataFromJson(DiaoduDetailDataData data, Map<String, dynamic> json) {
	if (json['ID'] != null) {
		data.iD = json['ID'] is String
				? int.tryParse(json['ID'])
				: json['ID'].toInt();
	}
	if (json['Gd_type_id'] != null) {
		data.gdTypeId = json['Gd_type_id'] is String
				? int.tryParse(json['Gd_type_id'])
				: json['Gd_type_id'].toInt();
	}
	if (json['Limit_time'] != null) {
		data.limitTime = json['Limit_time'] is String
				? double.tryParse(json['Limit_time'])
				: json['Limit_time'].toDouble();
	}
	if (json['Import_lev'] != null) {
		data.importLev = json['Import_lev'] is String
				? int.tryParse(json['Import_lev'])
				: json['Import_lev'].toInt();
	}
	if (json['Link_man'] != null) {
		data.linkMan = json['Link_man'].toString();
	}
	if (json['Link_phone'] != null) {
		data.linkPhone = json['Link_phone'].toString();
	}
	if (json['FromType'] != null) {
		data.fromType = json['FromType'] is String
				? int.tryParse(json['FromType'])
				: json['FromType'].toInt();
	}
	if (json['Region_id'] != null) {
		data.regionId = json['Region_id'] is String
				? int.tryParse(json['Region_id'])
				: json['Region_id'].toInt();
	}
	if (json['Xq_id'] != null) {
		data.xqId = json['Xq_id'].toString();
	}
	if (json['Sfbm'] != null) {
		data.sfbm = json['Sfbm'].toString();
	}
	if (json['All_name'] != null) {
		data.allName = json['All_name'].toString();
	}
	if (json['Ifyy'] != null) {
		data.ifyy = json['Ifyy'] is String
				? int.tryParse(json['Ifyy'])
				: json['Ifyy'].toInt();
	}
	if (json['YY_time'] != null) {
		data.yyTime = json['YY_time'];
	}
	if (json['State'] != null) {
		data.state = json['State'] is String
				? int.tryParse(json['State'])
				: json['State'].toInt();
	}
	if (json['ifhb'] != null) {
		data.ifhb = json['ifhb'] is String
				? int.tryParse(json['ifhb'])
				: json['ifhb'].toInt();
	}
	if (json['Describe'] != null) {
		data.describe = json['Describe'].toString();
	}
	if (json['Ifcw'] != null) {
		data.ifcw = json['Ifcw'];
	}
	if (json['Ifhf'] != null) {
		data.ifhf = json['Ifhf'] is String
				? int.tryParse(json['Ifhf'])
				: json['Ifhf'].toInt();
	}
	if (json['LSH'] != null) {
		data.lSH = json['LSH'].toString();
	}
	if (json['Department_id'] != null) {
		data.departmentId = json['Department_id'] is String
				? int.tryParse(json['Department_id'])
				: json['Department_id'].toInt();
	}
	if (json['User_id'] != null) {
		data.userId = json['User_id'].toString();
	}
	if (json['Flag'] != null) {
		data.flag = json['Flag'] is String
				? int.tryParse(json['Flag'])
				: json['Flag'].toInt();
	}
	if (json['isNew'] != null) {
		data.isNew = json['isNew'] is String
				? int.tryParse(json['isNew'])
				: json['isNew'].toInt();
	}
	if (json['ComePhone'] != null) {
		data.comePhone = json['ComePhone'].toString();
	}
	if (json['CreateDate'] != null) {
		data.createDate = json['CreateDate'].toString();
	}
	if (json['CreateUserId'] != null) {
		data.createUserId = json['CreateUserId'] is String
				? int.tryParse(json['CreateUserId'])
				: json['CreateUserId'].toInt();
	}
	if (json['UpdateDate'] != null) {
		data.updateDate = json['UpdateDate'];
	}
	if (json['UpdateUserId'] != null) {
		data.updateUserId = json['UpdateUserId'];
	}
	if (json['ImportName'] != null) {
		data.importName = json['ImportName'].toString();
	}
	if (json['Color'] != null) {
		data.color = json['Color'].toString();
	}
	if (json['RegionName'] != null) {
		data.regionName = json['RegionName'].toString();
	}
	if (json['Xq_name'] != null) {
		data.xqName = json['Xq_name'].toString();
	}
	if (json['StateName'] != null) {
		data.stateName = json['StateName'].toString();
	}
	if (json['Department_name'] != null) {
		data.departmentName = json['Department_name'].toString();
	}
	if (json['DQUser'] != null) {
		data.dQUser = json['DQUser'].toString();
	}
	if (json['CreateUserName'] != null) {
		data.createUserName = json['CreateUserName'].toString();
	}
	if (json['TypeName'] != null) {
		data.typeName = json['TypeName'].toString();
	}
	if (json['DDTime'] != null) {
		data.dDTime = json['DDTime'].toString();
	}
	if (json['isRead'] != null) {
		data.isRead = json['isRead'] is String
				? int.tryParse(json['isRead'])
				: json['isRead'].toInt();
	}
	if (json['HBName'] != null) {
		data.hBName = json['HBName'].toString();
	}
	if (json['Dy_id'] != null) {
		data.dyId = json['Dy_id'].toString();
	}
	if (json['ifyq'] != null) {
		data.ifyq = json['ifyq'].toString();
	}
	if (json['ResultName'] != null) {
		data.resultName = json['ResultName'];
	}
	if (json['XFUserName'] != null) {
		data.xFUserName = json['XFUserName'].toString();
	}
	if (json['CLRemarks'] != null) {
		data.cLRemarks = json['CLRemarks'];
	}
	if (json['ManYiDuName'] != null) {
		data.manYiDuName = json['ManYiDuName'].toString();
	}
	if (json['HFRemarks'] != null) {
		data.hFRemarks = json['HFRemarks'];
	}
	if (json['IfhfName'] != null) {
		data.ifhfName = json['IfhfName'].toString();
	}
	if (json['HFUser'] != null) {
		data.hFUser = json['HFUser'];
	}
	if (json['HFtime'] != null) {
		data.hFtime = json['HFtime'];
	}
	if (json['XFTime'] != null) {
		data.xFTime = json['XFTime'].toString();
	}
	if (json['CLTime'] != null) {
		data.cLTime = json['CLTime'];
	}
	if (json['CLUserName'] != null) {
		data.cLUserName = json['CLUserName'].toString();
	}
	if (json['Reason'] != null) {
		data.reason = json['Reason'];
	}
	if (json['CLUserId'] != null) {
		data.cLUserId = json['CLUserId'];
	}
	if (json['CreateDepartment'] != null) {
		data.createDepartment = json['CreateDepartment'] is String
				? int.tryParse(json['CreateDepartment'])
				: json['CreateDepartment'].toInt();
	}
	if (json['FromTypeName'] != null) {
		data.fromTypeName = json['FromTypeName'].toString();
	}
	if (json['ZHRemarks'] != null) {
		data.zHRemarks = json['ZHRemarks'].toString();
	}
	if (json['azfs_name'] != null) {
		data.azfsName = json['azfs_name'].toString();
	}
	if (json['Result'] != null) {
		data.result = json['Result'];
	}
	if (json['Lh_id'] != null) {
		data.lhId = json['Lh_id'].toString();
	}
	if (json['House_id'] != null) {
		data.houseId = json['House_id'].toString();
	}
	if (json['DQUserPhone'] != null) {
		data.dQUserPhone = json['DQUserPhone'];
	}
	if (json['weather'] != null) {
		data.weather = json['weather'].toString();
	}
	if (json['Sqlx_id'] != null) {
		data.sqlxId = json['Sqlx_id'] is String
				? int.tryParse(json['Sqlx_id'])
				: json['Sqlx_id'].toInt();
	}
	if (json['SqlxName'] != null) {
		data.sqlxName = json['SqlxName'].toString();
	}
	if (json['ConfirmTime'] != null) {
		data.confirmTime = json['ConfirmTime'].toString();
	}

	return data;
}

Map<String, dynamic> diaoduDetailDataDataToJson(DiaoduDetailDataData entity) {
	final Map<String, dynamic> data = new Map<String, dynamic>();
	data['ID'] = entity.iD;
	data['Gd_type_id'] = entity.gdTypeId;
	data['Limit_time'] = entity.limitTime;
	data['Import_lev'] = entity.importLev;
	data['Link_man'] = entity.linkMan;
	data['Link_phone'] = entity.linkPhone;
	data['FromType'] = entity.fromType;
	data['Region_id'] = entity.regionId;
	data['Xq_id'] = entity.xqId;
	data['Sfbm'] = entity.sfbm;
	data['All_name'] = entity.allName;
	data['Ifyy'] = entity.ifyy;
	data['YY_time'] = entity.yyTime;
	data['State'] = entity.state;
	data['ifhb'] = entity.ifhb;
	data['Describe'] = entity.describe;
	data['Ifcw'] = entity.ifcw;
	data['Ifhf'] = entity.ifhf;
	data['LSH'] = entity.lSH;
	data['Department_id'] = entity.departmentId;
	data['User_id'] = entity.userId;
	data['Flag'] = entity.flag;
	data['isNew'] = entity.isNew;
	data['ComePhone'] = entity.comePhone;
	data['CreateDate'] = entity.createDate;
	data['CreateUserId'] = entity.createUserId;
	data['UpdateDate'] = entity.updateDate;
	data['UpdateUserId'] = entity.updateUserId;
	data['ImportName'] = entity.importName;
	data['Color'] = entity.color;
	data['RegionName'] = entity.regionName;
	data['Xq_name'] = entity.xqName;
	data['StateName'] = entity.stateName;
	data['Department_name'] = entity.departmentName;
	data['DQUser'] = entity.dQUser;
	data['CreateUserName'] = entity.createUserName;
	data['TypeName'] = entity.typeName;
	data['DDTime'] = entity.dDTime;
	data['isRead'] = entity.isRead;
	data['HBName'] = entity.hBName;
	data['Dy_id'] = entity.dyId;
	data['ifyq'] = entity.ifyq;
	data['ResultName'] = entity.resultName;
	data['XFUserName'] = entity.xFUserName;
	data['CLRemarks'] = entity.cLRemarks;
	data['ManYiDuName'] = entity.manYiDuName;
	data['HFRemarks'] = entity.hFRemarks;
	data['IfhfName'] = entity.ifhfName;
	data['HFUser'] = entity.hFUser;
	data['HFtime'] = entity.hFtime;
	data['XFTime'] = entity.xFTime;
	data['CLTime'] = entity.cLTime;
	data['CLUserName'] = entity.cLUserName;
	data['Reason'] = entity.reason;
	data['CLUserId'] = entity.cLUserId;
	data['CreateDepartment'] = entity.createDepartment;
	data['FromTypeName'] = entity.fromTypeName;
	data['ZHRemarks'] = entity.zHRemarks;
	data['azfs_name'] = entity.azfsName;
	data['Result'] = entity.result;
	data['Lh_id'] = entity.lhId;
	data['House_id'] = entity.houseId;
	data['DQUserPhone'] = entity.dQUserPhone;
	data['weather'] = entity.weather;
	data['Sqlx_id'] = entity.sqlxId;
	data['SqlxName'] = entity.sqlxName;
	data['ConfirmTime'] = entity.confirmTime;

	return data;
}